decompress() decompress(string $data, bool $as_html = false) : array Decompress the data. Parameters string $data The data to decompress. bool $as_html Return message body as HTML Returns array — The decompressed data.
rtf2text() rtf2text(string $text) : string Parse RTF data and return the best plaintext representation we can. Adapted from: http://webcheatsheet.com/php/reading_the_clean_text_from_rtf.php Parameters string $text The RTF (uncompressed) text. Returns string — The plain text.
_getx() _getx(string $data, int $bytes) : string Pop specified number of bytes from the buffer. Parameters string $data The data string. int $bytes How many bytes to retrieve. Returns string — Extracted data
_geti() _geti(string $data, int $bits) : int|null Pop specified number of bits from the buffer Parameters string $data The data string. int $bits How many bits to retrieve. Returns int|null —
_decodeAttribute() _decodeAttribute(string $data) : string Decode a single attribute Parameters string $data The data string. Returns string — Extracted data
_extractMapiAttributes() _extractMapiAttributes(string $data, mixed $result) : mixed TODO Parameters string $data The data string. mixed $result Returns mixed —
_decodeMessage() _decodeMessage(string $data, array $message) : mixed Decodes TNEF message attributes Parameters string $data The data string. array $message Message data Returns mixed —
_decodeAttachment() _decodeAttachment(string $data, array $attachment) : mixed Decodes TNEF attachment attributes Parameters string $data The data string. array $attachment Attachments data Returns mixed —
convertString() convertString(mixed $str, mixed $use_codepage = false) : mixed Convert string value to system charset according to defined codepage Parameters mixed $str mixed $use_codepage Returns mixed —
_decompressRTF() _decompressRTF(mixed $data, mixed $size) : mixed Decompress compressed RTF. Logic taken from Horde. Parameters mixed $data mixed $size Returns mixed —
_rtfIsPlain() _rtfIsPlain(mixed $s) : mixed Checks if an RTF element is plain text Parameters mixed $s Returns mixed —